package com.mxpio.erp.common.workshop.entity;

import com.mxpioframework.jpa.annotation.Generator;
import com.mxpioframework.security.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.*;
import java.math.BigDecimal;

/**
 * @Author : 吴盼盼
 * @Datetime : 2022/11/14 11:32
 * @Desc :
 * @Modor :  Modifytime:
 * @modDesc :
 */
@Data
@EqualsAndHashCode(callSuper=false)
@Entity
@Table(name = "MB_ERP_WORKSHOP_DEFECTIVE_NOTICE_EXCEPTION")
@Schema(description="不良品处理通知单行-异常分类明细")
public class DefectiveProductsNoticeLineException extends BaseEntity {

	private static final long serialVersionUID = 1L;
    @Id
    @Generator
    @Column(name = "ID_", updatable = false)
    @Schema(description = "ID")
    private String id;

    @Column(name = "NOTICE_NO_", updatable = false)
    @Schema(description = "通知单号")
    private String noticeNo;

    @Column(name = "LINE_NO_", updatable = false)
    @Schema(description = "行号")
    private String lineNo;

    @Column(name = "ORIGIN_BIZ_NO_")
    @Schema(description = "来源单号")
    private String originBizNo;

    @Column(name = "ORIGIN_BIZ_LINE_NO_")
    @Schema(description = "来源单行号")
    private String originBizLineNo;

    @Column(name = "EXCEPTION_TYPE_")
    @Schema(description = "异常分类")
    private String exceptionType;

    @Column(name = "EXCEPTION_QUANTITY_")
    @Schema(description = "对应数量")
    private BigDecimal  exceptionQuantity;

    @Column(name = "SORT_")
    @Schema(description = "顺序号")
    private Integer sort;

    @Column(name = "ITEM_CODE_")
    @Schema(description = "物料编码")
    private String itemCode;

    @Column(name = "ITEM_NAME_")
    @Schema(description = "物料名称")
    private String itemName ;

    @Column(name = "LOT_NO_")
    @Schema(description = "批次号")
    private String lotNo;

    @Column(name = "SUB_LOT_INDEX_")
    @Schema(description = "子批次索引号")
    private String subLotIndex;

    @Column(name = "DRAWING_NO_")
    @Schema(description = "图号")
    private String drawingNo;


}
